MounRiver Studio

http://mounriver.com/   


Appendix (I)

Instruction For Use WCH-Link Utility.exe

1. Introduction

WCH-Link Utility is a code burning tool for MCU with WCH-Link (firmware version V1.40 and above), using SWD method.  (Software location: MounRiver installation directory\MounRiver_Studio\ExTool\SWD)

2.  Interface

The software interface is shown in the above figure, which can be divided into the following parts:

①Menu area:                                  provides detailed function operation entrance.
②Toolbar area:                               provides convenient operation entrances for common functions.
③Burning configuration area:         used to select the target chip type, Flash operation initial address,
                                                        CLK frequency and other parameters.
④Chip information display area:    used to display the target chip UID, version number, Flash size,
                                                        read protection status information.
⑤Firmware display area:                used to display the full path name of the selected target firmware.
⑥Chip Flash read configuration and content display area: 
                                                         used to set the initial address, length and other parameters of the
                                                         Flash to be read, and display the read content.
⑦Operation progress and result display area: 
                                                         used to display the execution progress of various operations,
                                                         operation results, programming/verification success/accumulated
                                                         execution times.

3.  Function

3.1 Select Burning Firmware

 (1) The first method: use the console to call the "full path name of the firmware to be burned of WCH-Link Utility.exe" command line, and the firmware will be automatically filled when the software is opened

 

 (2) The second method: click "File->OpenFirmware" in menu or  button in toolbar, or "Alt+F1" shortcut key, a file selection dialog box will pop up automatically, and you can select files in HEX or BIN format. 

3.2. Connect With WCH-LINK 
Click “Target->Connect WCH-Link” in menu or icon in toolbar, or “Alt+F2” shortcut key.
The operation result shows  , means the connection is successful.

The operation result shows  ,means the connection is unsuccessful, and need to check whether the WCH-Link hardware connection and mode are correct.

Note:
(1)    After clicking all the buttons mentioned later, the WCH-Link connection communication will be 
        automatically performed, and there is no need to click this button first. This button is mainly
        used to clear the chip information display area and FLASH content display area.
(2)    When introducing all the functions described later, WCH-Link has been updated to the latest
        firmware and all hardware connections are normal by default.
(3)    The read protection needs to be released before chip information reading, erasing, programming, 
        verification, reset, and Flash content reading operations.

3.3. Read Target Chip Information
Click “Target->Query Chip Info” in menu or   icon in toolbar, or “Alt+F3” shortcut key.

The operation result shows ,means the read is successful, and chip will return UID, version number and Flash size parameter. The corresponding data will display.

4. Operate Target Chip Read Protection Status

4.1.  Query Read Protection Status

Click “Target->Query Chip R-Protect Status” in menu or    icon in toolbar, or “Alt+F5” shortcut key.

The operation result shows , means it is successful.
The read protection is in enabled status  or disabled status   

4.2 Enable Read Protection Status
Click “Target->Enable Chip R-Protect” in menu or   icon in toolbar, or “Alt+F6” shortcut key.

The operation result shows ,means it is successful.
The read protection is in enabled status 
  .

4.3 Disable Read Protection Status
Click “Target->Enable Chip R-Protect” in menu or    icon in toolbar, or “Alt+F7” shortcut key.

The operation result shows   , means it is successful.
The read protection is in disabled status   .

5. Erase, Program, Verify And Reset

5.1 Erase

 Select target chip type, and click “Target->Erase Chip” in menu.

The operation result shows  , means the erasing is successful. 

5.2 Program

Select target firmware, and set target chip type, programming initial address and CLK frequency.
 

Click “Target->Program” in menu.

The operation result shows   , means the programming is successful.

5.3 Verify

Select target firmware, and set target chip type, programming initial address and CLK frequency.

Click “Target->Verify” in menu.

The operation result shows   , means the verification is successful.

5.4 Reset

Select target chip type, and click “Target->Reset” in menu.

The operation result shows , means the reset is successful.

5.5 Combined Operation

Set chip type, and tick interface checkbox, the “Enable R-Protect” and “Disable R-Protect” mean that the read protection status is enabled or disabled after completing operation. If tick “Program” or “Verify”, it also need to set target firmware, programming initial address and CLK frequency. Please view above for detailed operation. 

Click   icon in toolbar, or “Alt+F4” shortcut key.
The operation result shows , means the operation is successful.

6. Read Target Chip Falsh Information

Select target chip type, and set Flash initial address to be read (can select the default address in drop-down box or fill in valid custom address), length to be read (decimal), hexadecimal characters number on each line of return content and whether to display the corresponding ASCII code parameters. 

Click “View->Read Chip Flash” in menu or   icon in toolbar, or “Alt+F8” shortcut key.

The operation result shows , means reading chip Flash content is successful. the read hexadecimal data will display.

 

Contents

 


Copyright  (c)  2021 MounRiver Team All Rights Reserved